package router

import (
	"github.com/gin-gonic/gin"
	"practice/config"
	friend2 "practice/internal/api/friend"
	"practice/tools"
)

func FriendRouter(router *gin.RouterGroup) {
	friend := router.Group("friend").Use(tools.JWTAuth(config.AppConfig.Jwt.Key))
	{
		friend.POST("add", friend2.FriendAdd)
		friend.POST("del", friend2.DelFriend)
		friend.POST("update", friend2.UpdateNote)
		friend.POST("list", friend2.FriendList)
		friend.POST("find", friend2.FindFriend)
	}
}
